<div class="col-sm-12 mt20">
    
	<div class="panel panel-default">
		<div class="panel-body">
				<div class="col-sm-2">
						<label>开始时间：</label>
						<input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="date.opened"
						  ng-click="dateOpen($event, date)" placeholder="开始时间" ng-required="true"  close-text="关闭" current-text="今天" clear-text="清除"/>
				</div>
				<div class="col-sm-2">
						<label>结束时间：</label>
						<input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" is-open="date1.opened"
						  ng-click="dateOpen($event, date1)" placeholder="结束时间" ng-required="true" close-text="关闭" current-text="今天" clear-text="清除"/>										
				</div>
			<div class="col-sm-2">
					<label>交易分类</label>
					<select class="form-control" ng-model="searchform.type">
						<option value=''>--全部--</option>
						<option value='1'>余额充值</option>
						<option value='2'>购买产品</option>
						<option value='3'>退单</option>
						<option value='5'>系统服务</option>
				</select>
				<!-- <input type="text" class="form-control" placeholder="交易分类" ng-model="searchform.type"> -->
			</div>
			<div class="col-sm-2">
					<label>交易账号</label>
					<select class="form-control" ng-model="searchform.deposit_system">
						<option value=''>--全部--</option>
						<option value='0'>平台预存</option>
						<option value='1'>供应商预存</option>
				</select>
				<!-- <input type="text" class="form-control" placeholder="交易账号" ng-model="searchform.deposit_system"> -->
			</div>
			
			
			<div class="col-sm-2">
					<label>&nbsp;</label>
				<input type="text" class="form-control" placeholder="分销商" ng-model="searchform.seller_code">
			</div>
			<div class="col-sm-2">
					<label>&nbsp;</label>
				<input type="text" class="form-control" placeholder="供应商" ng-model="searchform.supplier_company_code">
			</div>
			
			
			<div class="col-sm-2">
					<label>&nbsp;</label>
				<input type="text" class="form-control" placeholder="姓名" ng-model="searchform.name">
			</div>
			<div class="col-sm-2">
					<label>&nbsp;</label>
				<input type="text" class="form-control" placeholder="手机号" ng-model="searchform.mobile">
			</div>
			<div class="col-sm-2">
					<label> &nbsp;</label>
					<input type="text" class="form-control" placeholder="订单编号" ng-model="searchform.order_code">
			</div>
			<div class="col-sm-4">
					<label>&nbsp;</label>
			</div>
				<div class="col-sm-2">
						<label>&nbsp;</label>
						<button class="btn btn-info search btn-block" ng-click="search(1)">立即搜索</button>
				</div>
		</div>

		<div class="panel-body" >
			<table class="table table-hover table-bordered dataTable table-condensed tree_table " style="table-layout:fixed">
				<thead>
					<tr>
						<th  class="text-center col-sm-1">交易时间</th>
						<th  class="text-center col-sm-1">交易分类</th>
						<th  class="text-center col-sm-2">交易信息</th>
						<th  class="text-center col-sm-1">交易金额</th>
						<th  class="text-center col-sm-2">对方账户信息</th>
						<th  class="text-center col-sm-2">备注</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="info in list">
						<td class="text-center" style="vertical-align: middle">{{info.create_time}}</td>
						<td class="text-center" style="vertical-align: middle">{{dict['a'+info.type]}}</td>
						<td class="text-center" style="vertical-align: middle" align="value">
							<div style="text-align: left">
								<span ng-if="info.type=='2' || info.type=='3'">订单编号：
									<a class="btn btn-xs btn-link under-line" ng-click="getOrderInfo(info)">{{info.order_code}}</a><br />
								</span>
								交易账户：{{info.deposit_system == '1' ? '供应商预存':'平台余额'}}
							</div>
						</td>
						<td class="text-center" style="vertical-align: middle">
							{{info.price * (info.type%2 == 1 ? 0.01 : -0.01) | currency : '¥'}}
						</td>
						<td class="text-center" style="vertical-align: middle" ng-if="info.other_company_code != 'SYS'">
							{{info.other_company_name}}（{{info.other_company_code}}）  
							<br /> 类型：{{info.company_type}}
						</td>
						<td class="text-center" style="vertical-align: middle" ng-if="info.other_company_code == 'SYS'">-</td>
						<td style="vertical-align: middle">{{info.remarks}}</td>
					</tr>
				</tbody>
			</table>
		</div>

		<div class="text-right" style="background-color: white; margin-right: 30px">
			<pagination total-items="totalItems" ng-model="currentPage" ng-change="search(currentPage)" previous-text="上一页"
				next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false"
				items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
		</div>

	</div>
</div>